//
//  HeadCell.m
//  UI15_太平洋电脑网
//
//  Created by dllo on 16/3/24.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "HeadCell.h"

@implementation HeadCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.picImageView = [[UIImageView alloc]init];
        [self.contentView addSubview:self.picImageView];
        [_picImageView release];
        self.titleLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.titleLabel];
        [_titleLabel release];
        self.titleLabel.font = [UIFont systemFontOfSize:17];
        self.titleLabel.numberOfLines = 0;
        [self.titleLabel sizeToFit];
        self.pubDateLable = [[UILabel alloc]init];
        [self.contentView addSubview:self.pubDateLable];
        [_pubDateLable release];
        self.pubDateLable.font = [UIFont systemFontOfSize:13];
        self.cmtCountLable = [[UILabel alloc]init];
        [self.contentView addSubview:self.cmtCountLable];
        self.cmtCountLable.font = [UIFont systemFontOfSize:13];
        [_cmtCountLable release];
        self.myView = [[UIView alloc]init];
        [self.contentView addSubview:self.myView];
        [_myView release];
        self.myView.backgroundColor = [UIColor grayColor];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.picImageView.frame = CGRectMake(10, 10, 120, 100);
    self.titleLabel.frame = CGRectMake(140, 10, 264, 50);
    self.pubDateLable.frame = CGRectMake(254, 90, 60, 20);
    self.cmtCountLable.frame = CGRectMake(354, 90, 50, 20);
    self.myView.frame = CGRectMake(0, 119, 414, 1);
}














- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
